/**
 * This static class emulates the delivery department interface and is used to
 * test our system.
 */
public class DeliveriesDpt {

    /**
     * This method receives an order and informs us that all items can be
     * delivered on the requested day.  This is just for testing obviously.
     *
     * @param order
     */
    public static void placeOrder(Order order) {
	LineItem[] items = order.getItems();
	for (LineItem item : items){
            item.setDeliveryDate(order.getRequestedDeliveryDate());
	}
	OrdersManager.updateOrderDeliveries(order);
    }

    /**
     * This method is not implemented
     *
     * @param orderId
     */
    public static void cancelOrder(int orderId) {}

    /**
     * This method is not implemented
     *
     * @param orderId
     */
    public static void confirmOrder(int orderId) {}

}
